diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-19 18:13:57 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-09-19 19:12:31 +0200 |
| commit | 2faf2e34331703b3bdea3eb487cb8799c8d65377 (patch) | |
| tree | dedc6557ddaa8fedd42d9bdf77950f8f9168ebcb /src/pages/sujet/[slug].tsx | |
| parent | d1fe9e2164fc5c8fd767b456eecc2a4eb929a33f (diff) | |
refactor(build): replace paths aliases with relative paths
Using paths aliases starting with "@" can be confusing and can lead to
conflict with existings modules. I prefer to use relative paths to
avoid extra configuration in tools because of these aliases.
Diffstat (limited to 'src/pages/sujet/[slug].tsx')
| -rw-r--r-- | src/pages/sujet/[slug].tsx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/pages/sujet/[slug].tsx b/src/pages/sujet/[slug].tsx index 48924e5..ffde92d 100644 --- a/src/pages/sujet/[slug].tsx +++ b/src/pages/sujet/[slug].tsx @@ -1,42 +1,42 @@ -import Heading from '@components/atoms/headings/heading'; -import ResponsiveImage from '@components/molecules/images/responsive-image'; -import PostsList from '@components/organisms/layout/posts-list'; -import LinksListWidget from '@components/organisms/widgets/links-list-widget'; -import { getLayout } from '@components/templates/layout/layout'; +import { GetStaticPaths, GetStaticProps } from 'next'; +import Head from 'next/head'; +import { useRouter } from 'next/router'; +import Script from 'next/script'; +import { ParsedUrlQuery } from 'querystring'; +import { useIntl } from 'react-intl'; +import Heading from '../../components/atoms/headings/heading'; +import ResponsiveImage from '../../components/molecules/images/responsive-image'; +import PostsList from '../../components/organisms/layout/posts-list'; +import LinksListWidget from '../../components/organisms/widgets/links-list-widget'; +import { getLayout } from '../../components/templates/layout/layout'; import PageLayout, { type PageLayoutProps, -} from '@components/templates/page/page-layout'; +} from '../../components/templates/page/page-layout'; import { getAllTopicsSlugs, getTopicBySlug, getTopicsPreview, getTotalTopics, -} from '@services/graphql/topics'; -import styles from '@styles/pages/topic.module.scss'; +} from '../../services/graphql/topics'; +import styles from '../../styles/pages/topic.module.scss'; import { type NextPageWithLayout, type PageLink, type Topic, -} from '@ts/types/app'; -import { loadTranslation, type Messages } from '@utils/helpers/i18n'; +} from '../../types/app'; +import { loadTranslation, type Messages } from '../../utils/helpers/i18n'; import { getLinksListItems, getPageLinkFromRawData, getPostsWithUrl, -} from '@utils/helpers/pages'; +} from '../../utils/helpers/pages'; import { getSchemaJson, getSinglePageSchema, getWebPageSchema, -} from '@utils/helpers/schema-org'; -import useBreadcrumb from '@utils/hooks/use-breadcrumb'; -import useSettings from '@utils/hooks/use-settings'; -import { GetStaticPaths, GetStaticProps } from 'next'; -import Head from 'next/head'; -import { useRouter } from 'next/router'; -import Script from 'next/script'; -import { ParsedUrlQuery } from 'querystring'; -import { useIntl } from 'react-intl'; +} from '../../utils/helpers/schema-org'; +import useBreadcrumb from '../../utils/hooks/use-breadcrumb'; +import useSettings from '../../utils/hooks/use-settings'; export type TopicPageProps = { currentTopic: Topic; |
